package com.pbc.gmp.model;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

public class LoginUserInfo implements Serializable {


    public LoginUserInfo(Long id, String name, String realname, String worktitle, String maindepartment,
                         Long departmentid, Long positionid,String positionName,String loginname, Set<String> userRoles,
                         Set<String> userPermissions,List<OrgTreeDto> orgTreeDtos,List<MenuTreeResourseDto> menus) {
        this.id = id;
        this.name = name;
        this.realname = realname;
        this.worktitle = worktitle;
        this.maindepartment = maindepartment;
        this.loginname = loginname;
        this.userRoles = userRoles;
        this.userPermissions = userPermissions;
        this.departmentid=departmentid;
        this.positionid=positionid;
        this.positionName=positionName;
        this.orgTreeDtos=orgTreeDtos;
        this.menus=menus;
    }

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private String name;
    /**
     *
     */
    private String realname;
    /**
     *
     */
    private String worktitle;


    /**
     *
     */
    private String maindepartment;


    /**
     *
     */
    private String loginname;
    /**
     * 用户所有角色
     */
    private Set<String> userRoles;
    private Set<String> userPermissions;
    private List<MenuTreeResourseDto> menus;
    private Long departmentid;
    private  Long positionid;
    private  String positionName;

    public Long getPositionid() {
        return positionid;
    }

    public void setPositionid(Long positionid) {
        this.positionid = positionid;
    }

    public List<OrgTreeDto> getOrgTreeDtos() {
        return orgTreeDtos;
    }

    public void setOrgTreeDtos(List<OrgTreeDto> orgTreeDtos) {
        this.orgTreeDtos = orgTreeDtos;
    }

    private List<OrgTreeDto> orgTreeDtos;





    public List<MenuTreeResourseDto> getMenus() {
        return menus;
    }

    public void setMenus(List<MenuTreeResourseDto> menus) {
        this.menus = menus;
    }

    public Long getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(Long departmentid) {
        this.departmentid = departmentid;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public Set<String> getUserRoles() {
        return userRoles;
    }

    public void setUserRoles(Set<String> userRoles) {
        this.userRoles = userRoles;
    }

    public Set<String> getUserPermissions() {
        return userPermissions;
    }

    public void setUserPermissions(Set<String> userPermissions) {
        this.userPermissions = userPermissions;
    }

    public String getWorktitle() {
        return worktitle;
    }

    public void setWorktitle(String worktitle) {
        this.worktitle = worktitle;
    }

    public String getMaindepartment() {
        return maindepartment;
    }

    public void setMaindepartment(String maindepartment) {
        this.maindepartment = maindepartment;
    }
}